<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <link rel="shortcut icon" href="../static/images/local/校标.jpg" />
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
    <link rel="stylesheet" href="../static/layui/css/layui.css">
    <script src="../static/layui/layui.js" ></script>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>管理员</title>
</head>
<body>
<ul class="layui-nav layui-bg-green">
    <li class="layui-nav-item"><a id="userShow" href=""  target="iframe_a">管理用户</a></li>
    <li class="layui-nav-item"><a id="newsShow" href="" target="iframe_a">管理新闻</a></li>
    <li class="layui-nav-item"><a id="signOut"  href="" target="iframe_a">退出登录</a></li>
</ul>
<br>
<iframe id="main" src="" style="width: 98.8vw"  height="650"  frameborder="0" name="iframe_a"></iframe>
</body>
</html>
<script>
    const suffix=localStorage.getItem("suffix");
    const prefix=localStorage.getItem("prefix");
    if(sessionStorage.getItem("root")!=="1")
    {window.alert("请先登录!");window.location.href=prefix+"/logIn"+suffix;}
    $('#userShow').attr('href',prefix+"/userShow"+suffix);
    $('#newsShow').attr('href',prefix+"/newsShow"+suffix);
    $('#signOut').attr('href',prefix+"/signOut"+suffix);
    $('#main').attr('href',prefix+"/userShow"+suffix);
</script>